<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:j4j="http://javascript4jsf.dev.java.net/"
	xmlns:wiki="http://jboss.com/products/seam/wiki"
	template="template.xhtml">

	<ui:define name="content">
		<div id="contentMain">
		<div class="errors"><h:messages globalOnly="true" /></div>

		<p>Already a member? <s:link view="/home.au"
			value="Click here to log in" propagation="none" /></p>

		<div id="register">
		<div class="registerHeader">只需20秒，立即加入AffectU全球领先的在线工作平台！</div>

		<h:form styleClass="register">
			<s:validateAll>
				<div class="formRow"><h:outputLabel for="email">电子邮箱<em>*</em>
				</h:outputLabel> <h:inputText id="email" value="#{user.email}" required="true"
					styleClass="wide" />
				<div class="validationError"><h:message for="email" /></div>
				</div>

				<div class="formRow"><h:outputLabel for="password">密码<em>*</em>
				</h:outputLabel> <h:inputSecret id="password" value="#{user.password}"
					required="true" />
				<div class="validationError"><h:message for="password" /></div>
				</div>

				<div class="formRow"><h:outputLabel for="confirmPassword">确认密码<em>*</em>
				</h:outputLabel> <h:inputSecret id="confirmPassword" value=""
					required="true" />
				<div class="validationError"><h:message for="confirmPassword" /></div>
				</div>

				<div class="formRow"><h:outputLabel for="memberName">昵称<em>*</em>
				</h:outputLabel> <h:inputText id="memberName" value="#{user.nickName}"
					required="true" />
				<div class="validationError"><h:message for="memberName" /></div>
				</div>


				<div class="formRow"><h:graphicImage
					value="/seam/resource/captcha?#{captcha.id}" /></div>

				<div class="formRow"><h:outputLabel for="verifyCaptcha">验证码<em>*</em>
				</h:outputLabel> <h:inputText id="verifyCaptcha" value=""
					required="true" />
				<div class="validationError"><h:message for="verifyCaptcha" /></div>
				</div>

			</s:validateAll>

			<div class="buttons"><h:commandButton value="注册"
				action="#{userAction.add}" styleClass="registerButton" /></div>

		</h:form> <br class="clear" />
		</div>
		</div>
	</ui:define>
</ui:composition>